The osx-gcc-installer allows you to install the essential compilers from either pre-built binary packages or helps you create your own installer. If you still need gcc-4.2, and you use Homebrew, you can install it using the apple-gcc42 package from homebr